package com.ocom.company.feign;

import com.ocom.common.constant.PayConfigUrl;
import com.ocom.common.entity.card.EntityXfMerchantInfo;
import com.ocom.common.request.payconfig.GetMerchInfoByIdsRequest;
import com.ocom.common.resp.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@Component
@FeignClient(value = "payconfig")
public interface PayConfigClient {
    @PostMapping(PayConfigUrl.URLP_PayConfig_GetMerchInfoOne)
    public Result<EntityXfMerchantInfo> GetMerchInfo(@RequestParam("comId") Long comId, @RequestParam("merchId") Integer merchId);

    @PostMapping(PayConfigUrl.URLP_PayConfig_GetMerchInfoByIds)
    public Result<List<EntityXfMerchantInfo>> GetMerchInfoByIds(@RequestBody GetMerchInfoByIdsRequest request);
}
